export interface ITodo {
  id: number;
  content: string;
  completed: boolean;
}

export interface IState {
  todoList: ITodo[];
}

export interface IACTION {
  type: ACTION_TYPE,
  payload: ITodo | ITodo[] | number
}
export enum ACTION_TYPE {
  ADD_TODO = 'addTodo',
  REMOVE_TODO = 'removeTodo',
  TAGGLE_TODO = 'taggleTodo',
  INIT_TODOLIST = 'init_TodoList',
}